package com.yang.scheduler;

import org.jboss.logging.Logger;
import org.springframework.context.annotation.Lazy;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
@Lazy(value=false)
public class TimeSchedulerServiceImpl{
    private static Logger logger = Logger.getLogger(TimeSchedulerServiceImpl.class);


//    @Scheduled(cron="0 0 0 * * ? ")//每天零点触发
//   @Scheduled(cron="0/5 * *  * * ? ")
    public void modificationPastOrderScheduler() {
        logger.info("定时器");
    }
}
